from django import forms
from core.models.grade_schedule import GradeSchedule

class GradeScheduleForm(forms.ModelForm):
    class Meta:
        model = GradeSchedule
        fields = ['grade', 'semester', 'date', 'is_class_day']
        widgets = {
            'grade': forms.Select(attrs={'class': 'form-control', 'required': 'required'}),
            'semester': forms.Select(attrs={'class': 'form-control'}),
            'date': forms.DateInput(attrs={'type': 'date', 'class': 'form-control'}),
            'is_class_day': forms.Select(attrs={'class': 'form-control'}),
        }